package com.black.apartment.domain;

import com.alibaba.druid.support.monitor.annotation.MTable;

@MTable(name = "tb_area")
public class Area {
    private Integer areaId;    // 区域ID
    private String areaName;    // 区域名称
    private Byte areaType;      // 区域类型
    private Integer parentId;   // 父级区域ID

    // Getter 和 Setter 方法
    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Byte getAreaType() {
        return areaType;
    }

    public void setAreaType(Byte areaType) {
        this.areaType = areaType;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Area(Integer areaId, String areaName, Byte areaType, Integer parentId) {
        this.areaId = areaId;
        this.areaName = areaName;
        this.areaType = areaType;
        this.parentId = parentId;
    }

    public Area() {
    }
}

